package com.wiki.KBS.Controller;

import com.wiki.KBS.domian.User;
import com.wiki.KBS.services.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TestController {
    @RequestMapping("/hello")
    public String hello(){
        return "hello 20250211  111";
    }

    @Autowired
    private UserService userService;

    @RequestMapping("/userlist")
    public List<User> userList(){
        return userService.userList();
    }
}
